package com.cd.learn.cdlearn.resttemplate;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author YeePongWong
 * @version 1.0
 * @date 2020/9/7 10:25 上午
 */
public class TestContext {

    private final static Logger log = LoggerFactory.getLogger(TestContext.class);

    private static class ThreadLocalHolder {
        private static final InheritableThreadLocal<String> INSTANCE = new InheritableThreadLocal<>();
    }

    public static String get() {
        return ThreadLocalHolder.INSTANCE.get();
    }

    public static void set(String auditLog) {
        ThreadLocalHolder.INSTANCE.set(auditLog);
    }

    public static void remove() {
        ThreadLocalHolder.INSTANCE.remove();
    }


}
